
package org.thingsboard.server.common.data;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import org.thingsboard.server.common.data.id.SchedulerEventId;

@EqualsAndHashCode(callSuper = true)
@Slf4j
public class SchedulerEvent extends SchedulerEventInfo{

    private transient JsonNode configuration;
    public SchedulerEvent() {
        super();
    }
    public SchedulerEvent(SchedulerEventId id) {
        super(id);
    }
    public SchedulerEvent(SchedulerEvent schedulerEvent) {
        super(schedulerEvent);
        this.configuration=schedulerEvent.configuration;

    }

    public JsonNode getConfiguration() {
        return configuration;
    }

    public void setConfiguration(JsonNode configuration) {
        this.configuration = configuration;
    }


    @Override
    public String getSearchText() {
        return getName();
    }
}
